package com.xydpeng.rpc.consumer.annotation;


import javax.annotation.Resource;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2023/4/7
 * @description:
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Resource
public @interface RpcReference {

    /**
     * @return The service id with optional protocol prefix
     * value}.
     */
    String name() default "";

    String url() default "";

    /**
     * Timeout value for service invocation, default value is -1
     */
    int timeout() default -1;

    /**
     * Service version, default value is empty string
     */
    String version() default "";


}
